# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=perl-net-libdnet6
_pkgname=Net-Libdnet6
pkgver=0.28
pkgrel=6
pkgdesc='Adds IPv6 support to Net::Libdnet.'
arch=('any')
url='http://search.cpan.org/~gomor/Net-Libdnet6/lib/Net/Libdnet6.pm'
license=('GPL' 'PerlArtistic')
depends=('perl')
options=(!emptydirs)
source=("http://search.cpan.org/CPAN/authors/id/G/GO/GOMOR/Net-Libdnet6-$pkgver.tar.gz")
sha512sums=('285804c9f8eaecd4ed26ff4f5c3ea6b58bc985e808fdd7955278b7252b9607b338ef63e22cb589de4f9db01f2100cea2c79df521f4fc55e4c6d8c58bdc3c941b')

prepare() {
  cd "$_pkgname-$pkgver"

  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
  cd "$_pkgname-$pkgver"

  make
}

package() {
  cd "$_pkgname-$pkgver"

  make DESTDIR="$pkgdir" install
}

